home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / fixra100.zip / FIXRA100.C next >
Text File  |  1991-02-19  |  567b  |  28 lines

  1. #include "stdio.h"
  2. #include "io.h"
  3. #include "fcntl.h"
  4.  
  5. char *file = "RA.OVR";
  6. long int offset[] = { 9352L, 0L };
  7. char *new[] = { "\x25\x0A\x0DPlease press Enter now to continue.", NULL };
  8. int length[] = { 38, 0 };
  9. int h, p;
  10. char *initmsg = "Fixing RemoteAccess 1.00";
  11. char *donemsg = "Done!\n";
  12.  
  13. void main()
  14. {    p = 0;
  15.     printf(initmsg);
  16.     h = open(file,O_RDWR|O_BINARY);
  17.     while (length[p] != 0)
  18.     {    printf(".");
  19.         lseek(h,offset[p],SEEK_SET);
  20.         printf(".");
  21.         write(h,new[p],length[p]);
  22.         printf(".");
  23.         p++;
  24.     }
  25.     close(h);
  26.     printf(donemsg);
  27. }
  28.